package com.gitee.fsadmin.service.product;

import com.gitee.fastmybatis.core.PageInfo;
import com.gitee.fastmybatis.core.query.LambdaQuery;
import com.gitee.fastmybatis.core.support.LambdaService;
import com.gitee.fsadmin.dao.entity.ProductInfo;
import com.gitee.fsadmin.dao.mapper.ProductInfoMapper;
import org.noear.solon.annotation.Component;


/**
 * @author 六如
 */
@Component
public class ProductInfoService implements LambdaService<ProductInfo, ProductInfoMapper> {

	public PageInfo<ProductInfo> doPage(LambdaQuery<ProductInfo> query) {
     	query.orderByDesc(ProductInfo::getId);
        PageInfo<ProductInfo> page = this.page(query);

        // 格式转换
        return page.convert(isvInfo -> {

            return isvInfo;
        });
    }


}
